added SSCLI 1.0
[windows-sources.git] / sdk / samples / all in on code / Visual Studio 2010 / CSAzureTableStoragePaging / MvcWebRole / Global.asax.cs
blob1f794845377c231238e5be782048ba43e0af56fe
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Web;
5 using System.Web.Mvc;
6 using System.Web.Routing;
7 using Microsoft.WindowsAzure;
8 using Microsoft.WindowsAzure.ServiceRuntime;
10 namespace MvcWebRole
12 // Note: For instructions on enabling IIS6 or IIS7 classic mode,
13 // visit http://go.microsoft.com/?LinkId=9394801
15 public class MvcApplication : System.Web.HttpApplication
17 public static void RegisterRoutes(RouteCollection routes)
19 routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
21 routes.MapRoute(
22 "Default", // Route name
23 "{controller}/{action}/{id}", // URL with parameters
24 new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
29 protected void Application_Start()
31 CloudStorageAccount.SetConfigurationSettingPublisher((configName, configSetter) =>
33 configSetter(RoleEnvironment.GetConfigurationSettingValue(configName));
34 });
36 AreaRegistration.RegisterAllAreas();
38 RegisterRoutes(RouteTable.Routes);